import request from "@/utils/request";

// 提问教师列表
const teacher_getlist = (data) => request("/teacher/getlist", "GET", data)
// 教师详情
const teacher_detail = (data) => request("/teacher/getdetail", "GET", data)
// 收藏教师、取消收藏老师
const collectTeacher = (data) => request("/teacher/collects", "POST", data)
// 提交提问
const submit_teacher_detail = (data) => request("/teacher/publish", "POST", data)
// 获取学科数据
const getsubject = (data) => request("/index/getsubject", "GET", data)
// 提问支付
const gotopay = (data) => request("/teacher/gotopay", "POST", data)
// 我的提问
const getquestionlist = (data) => request("/teacher/getquestionlist", "GET", data)
// 撤单
const cancel_order = (data) => request("/teacher/cancel", "POST", data)
// 拉黑
const blacklist_teacher = (data) => request("/teacher/blacklist", "POST", data)
// 回答详情
const getquestiondetail = (data) => request("/teacher/getquestiondetail", "POST", data)
// 发表评价
const teacher_comment = (data) => request("teacher/comment", "POST", data)

export {
    teacher_getlist,
    teacher_detail,
	submit_teacher_detail,
	getsubject,
	getquestionlist,
	gotopay,
	getquestiondetail,
	teacher_comment,
	cancel_order,
    collectTeacher
}